﻿<%@ Page Title="" Language="VB" MasterPageFile="~/App/Master/App.master" AutoEventWireup="false" CodeFile="Follow.aspx.vb" Inherits="App_Follow" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphHead" runat="Server">
    <link href="/js/jquery/css/ui.slider.extras.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphMainContent" runat="Server">
    <asp:ScriptManagerProxy runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/js/jquery/js/jquery.jstree.js" />
            <asp:ScriptReference Path="~/js/jquery/js/selectToUISlider.jQuery.js" />
            <asp:ScriptReference Path="Follow.aspx.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <script type="text/javascript">


        $(function () {



        });


        function rowAction(uniqueID) {

            //$('#dialogContent').dialog('option', 'buttons',
            //    {
            //        "OK": function () {
            //            //__doPostBack(uniqueID, '');
            //            alert($('#' + uniqueID).attr('href'));
            //            eval($('#' + uniqueID).attr('href'));
            //            //document.getElementById(uniqueID).click();
            //            //$('#' + uniqueID)[0].click();
            //            $(this).dialog("close");
            //        },
            //        "Cancel": function () { $(this).dialog("close"); }
            //    });

            //$('#dialogContent').dialog('open');

            //dialog.parent().appendTo($('form:first'));


            return false;
        }



    </script>


    <!-- row 1 -->
    <div class="row-fluid">
        <!-- wizard -->
        <asp:UpdatePanel ID="UpPWizard" runat="server" class="wizard" UpdateMode="Conditional">
            <ContentTemplate>
                <!-- titolo -->
                <div class="top-bar-wizard">
                    auto following wizard<div><a href="#" class="a-icona7-b"></a></div>
                </div>
                <!-- contenuti -->
                <div class="well-wizard-tabs">
                    <div id="read">
                        <div>
                            <input type="checkbox" id="c1" />
                            <label for="c1"><span></span>I’ve read and agree Twitter rules about auto following</label>
                        </div>
                    </div>
                    <div id="container-tabs">
                        <asp:Panel runat="server" ID="PnlWiz1" CssClass="content-tab">
                            <div>
                                <div>Insert one or more hashtags to look for</div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz1Query1" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:LinkButton runat="server" ID="BtnWizAddFollQuery" CssClass="a-insert-hashtags"></asp:LinkButton>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz1Query2" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz1Query3" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz1Query4" Text="#"></asp:TextBox>
                                </div>
                            </div>

                        </asp:Panel>
                        <asp:Panel runat="server" ID="PnlWiz2" CssClass="content-tab">
                            <div>
                                <div>Insert one or more users to look for</div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz2Profile1" Text="@"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:LinkButton runat="server" ID="BtnWizAddFollProfile" CssClass="a-insert-hashtags"></asp:LinkButton>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz2Profile2" Text="@"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz2Profile3" Text="@"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz2Profile4" Text="@"></asp:TextBox>
                                </div>
                            </div>

                        </asp:Panel>
                        <asp:Panel runat="server" ID="PnlWiz3" CssClass="content-tab">
                            <div>
                                <div>Insert one or more hashtags to monitor</div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz3Query1" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:LinkButton runat="server" ID="BtnWizAddListenQuery" CssClass="a-insert-hashtags"></asp:LinkButton>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz3Query2" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz3Query3" Text="#"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:TextBox runat="server" ID="TxtWiz3Query4" Text="#"></asp:TextBox>
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel runat="server" ID="PnlWizFinish" CssClass="content-tab" Visible="false">
                            <div>
                                <div class="send-good">
                                    <div class="send-good-mess">
                                        <div class="send-good-img">
                                            <img src="/style/app/img/valido.png">
                                        </div>
                                        <div class="good">Good!</div>
                                    </div>
                                    <div class="data-saved">
                                        Your data are been saved
                                    <br />
                                        to your enquiries
                                    </div>
                                    <div class="go-back">
                                        You can <a href="#">GO BACK</a> or manage<br />
                                        your enquiries down below
                                    </div>
                                </div>
                            </div>

                        </asp:Panel>
                    </div>
                    <div>
                        <ul id="tabs">
                            <li class="tab-menu">
                                <asp:LinkButton runat="server" ID="BtnTabWiz1" CommandName="WIZ_TAB" CommandArgument="1" ClientIDMode ="Predictable">
                                <div>
                                    <div class="business-account-img">
                                        <img src="/style/app/img/uomo-tab.png" />
                                    </div>
                                    <div class="business-account">I’m looking for business accounts</div>
                                </div>
                                </asp:LinkButton>
                            </li>
                            <li class="tab-menu">
                                <asp:LinkButton runat="server" ID="BtnTabWiz2" CommandName="WIZ_TAB" CommandArgument="2" ClientIDMode ="Predictable">
                                <div>
                                    <div class="private-account-img">
                                        <img src="/style/app/img/coppia-tab.png" />
                                    </div>
                                    <div class="private-account">I’m looking for private accounts</div>
                                </div>
                                </asp:LinkButton>
                            </li>
                            <li class="tab-menu">
                                <asp:LinkButton runat="server" ID="BtnTabWiz3" CommandName="WIZ_TAB" CommandArgument="3" ClientIDMode ="Predictable">
                                <div>
                                    <div class="monitor-account-img">
                                        <img src="/style/app/img/cancelletti-tab.png" />
                                    </div>
                                    <div class="monitor-account">I want to monitor one or more hastags</div>
                                </div>
                                </asp:LinkButton>
                            </li>
                        </ul>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <!-- options -->
        <div class="options">
            <!-- titolo -->
            <div class="top-bar">
                options<div></div>

            </div>
            <!-- contenuti -->
            <div class="well-options">
                <div>
                    <div class="titolo-option">
                        Max auto follow/unfollow per day
                        <asp:DropDownList runat="server" ID="DdlAutoFollNumber"></asp:DropDownList>
                    </div>
                    <div class="titolo-option">
                        Business/private auto following percentage
                        <select name="speed" id="speed2">
                            <option value="Slower" disabled="disabled">aaa</option>
                            <option value="Slow">Slow</option>
                            <option value="Med" selected="selected">Med</option>
                            <option value="Fast" disabled="disabled">Fast</option>
                            <option value="Faster">Faster</option>
                        </select>

                    </div>
                    <div class="titolo-option">
                        Hashtag usage accuracy
                        <select name="speed" id="speed3">
                            <option value="Slower">Slower</option>
                            <option value="Slow">Slow</option>
                            <option value="Med" selected="selected">Med</option>
                            <option value="Fast">Fast</option>
                            <option value="Faster">Faster</option>
                        </select>

                    </div>
                </div>
                <div class="option-save">
                    <asp:LinkButton runat="server" ID="BtnOptionSave" CssClass="bottone-save">Save</asp:LinkButton>
                </div>
                <div id="barra-option"></div>
                <div>
                    <div>
                        <input type="checkbox" id="c2" name="c2" />
                        <label for="c2"><span></span>Auto unfollow after 1 week</label>
                    </div>
                    <div>
                        <input type="checkbox" id="c3" name="c3" />
                        <label for="c3"><span></span>I’m stuck with Twitter following limit, help me!</label>
                    </div>
                    <div>
                        <input type="checkbox" id="c4" name="c4" />
                        <label for="c4"><span></span>I’ve read and agreed Twitter rules about auto following</label>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <!-- row 2 -->
    <div class="row-fluid">
        <!-- auto foll query -->
        <asp:UpdatePanel ID="UpPAutoFollwQuery" runat="server" class="by-hastags" UpdateMode="Conditional">
            <ContentTemplate>
                <!-- titolo -->
                <div class="top-bar">
                    auto following by hashtags
                 <div><a href="#" class="a-icona7"></a></div>
                </div>
                <!-- contenuti -->
                <div class="well-by-hastags">
                    <ul class="ul-hash">
                        <asp:ListView runat="server" ID="ListAutoFollQuery" ClientIDMode="Predictable">
                            <ItemTemplate>
                                <li class="hash"><%# eval("query") %>
                                    <asp:LinkButton runat="server" CommandName="REMOVE_QUERY">x</asp:LinkButton>
                                </li>
                            </ItemTemplate>
                        </asp:ListView>
                    </ul>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>

        <!-- auto foll profile -->
        <asp:UpdatePanel ID="UpPAutoFollProfile" runat="server" class="by-accounts" UpdateMode="Conditional">
            <ContentTemplate>
                <!-- titolo -->
                <div class="top-bar">
                    auto following by accounts 
                        <div><a href="#" class="a-icona7"></a></div>
                </div>
                <!-- contenuti -->
                <div class="well-by-accounts">

                    <asp:ListView runat="server" ID="ListAutoFollProfile" ClientIDMode="Predictable">
                        <ItemTemplate>
                            <div class="tb-post">
                                <div class="post">
                                    <div class="post-img">
                                        <img src="<%# eval("avatar") %>" />
                                    </div>
                                    <div class="content-tweet">
                                        <div class="titolo-count">
                                            <%# Eval("fullname")%>
                                            <div class="weevo">@<%# eval("username") %></div>
                                        </div>
                                    </div>
                                    <div class="counter-tweet">
                                        <div class="count">
                                            <div class="counter-n"><%# UI.Print.Num0(eval("post_count")) %></div>
                                            <div class="counter-t">TWEETS</div>
                                        </div>
                                        <div class="count">
                                            <div class="counter-n"><%# UI.Print.Num0(Eval("friend_count"))%></div>
                                            <div class="counter-t">FOLLOWING</div>
                                        </div>
                                        <div class="count">
                                            <div class="counter-n"><%# UI.Print.Num0(eval("follower_count")) %></div>
                                            <div class="counter-t">FOLLOWERS</div>
                                        </div>
                                    </div>
                                    <div class="delete-post">
                                        <asp:LinkButton runat="server" CommandName="REMOVE_PROFILE">x</asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:ListView>

                    <App:DataPager runat="server" PageSize="4" Controlid="ListAutoFollProfile" OnPageChanged="SetListFollowProfile" />

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>

        <!-- listen query -->
        <asp:UpdatePanel ID="UpPListenQuery" runat="server" class="monitoring" UpdateMode="Conditional">
            <ContentTemplate>
                <!-- titolo -->
                <div class="top-bar">
                    hashtags monitoring
                <div><a href="#" class="a-icona7"></a></div>
                </div>
                <!-- contenuti -->
                <div class="well-monitoring">

                    <ul class="ul-hash">
                        <asp:ListView runat="server" ID="ListListenQuery" ClientIDMode="Predictable">
                            <ItemTemplate>
                                <li class="hash"><%# eval("query") %>
                                    <asp:LinkButton runat="server" CommandName="REMOVE_QUERY">x</asp:LinkButton>
                                </li>
                            </ItemTemplate>
                        </asp:ListView>
                    </ul>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>

    <!-- row 3 -->
    <div class="row-fluid">
        <!-- enquiry -->
        <div class="enquiries">
            <!-- titolo -->
            <div class="top-bar">
                enquiries
				
                <div><a href="#" class="a-icona7 tooltip" title="Nel titolo il testo toltip"></a></div>
            </div>
            <!-- contenuto -->
            <div class="well-enquiries">
                <div class="enquiries-left">
                    <ul class="enquiries-add">
                        <li><a class="bottone-add" id="add_folder" href="#">ADD</a> </li>
                        <li><a class="bottone-add" id="rename_folder" href="#">RENAME</li>
                        <li><a class="bottone-add" id="remove_folder" href="#">REMOVE</a></li>
                    </ul>
                    <div id="demo1" style="height: auto; overflow: auto;"></div>
                </div>
                <asp:UpdatePanel ID="UpPEnquiry" runat="server" class="enquiries-query" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Button ID="BtnReload_UpPEnquiry" runat="server" Style="display: none;" Text="Reload" />
                        <asp:HiddenField ID="HidSelectFolderId" runat="server" Value="0" />

                        <div>
                            <ul class="enquiries-status">
                                <li class="enquiries-flag">
                                    <input type="checkbox" id="ChkAllQuery">
                                    <label for="ChkAllQuery"><span></span></label>
                                </li>

                                <li class="enquiries-testo">
                                    <div class="en-query">
                                        <div class="en-query-testo">query</div>
                                        <div class="en-query-add">
                                            <asp:LinkButton runat="server" ID="BtnAddQuery" CssClass="bottone-add">ADD</asp:LinkButton>
                                        </div>
                                    </div>
                                </li>
                                <li class="enquiries-post">
                                    <div class="en-post">post</div>
                                </li>
                                <li class="enquiries-stato">
                                    <div class="en-stato">status</div>
                                </li>
                                <li class="enquiries-update">
                                    <div class="en-update">last update</div>
                                </li>
                                <li class="enquiries-icone">
                                    <div class="en-icone">
                                    </div>
                                </li>
                            </ul>
                        </div>

                        <asp:ListView runat="server" ID="ListQuery" ClientIDMode="Predictable">
                            <ItemTemplate>
                                <div class="query_row">
                                    <ul class="enquiries-status">
                                        <li class="enquiries-flag">
                                            <span id='<%# Eval("id") %>' data-type='<%# mDB.Folder.DataType.QUERY%>' class="jstree-draggable" onmousedown="onmousedown_chk_item($(this));" onmouseup="onmouseup_chk_item($(this));" onclick="return false;">
                                                <input type="checkbox" id="ChkItem<%# Eval("id") %>">
                                                <label for="ChkItem<%# Eval("id") %>"><span></span></label>
                                            </span>

                                        </li>
                                        <li class="enquiries-testo">
                                            <div class="en-query">
                                                <div class="en-titolo"><%# Eval("query") %></div>
                                                <div class="en-naz"><%# Eval("lang_code") %></div>
                                                <div class="en-loc"><%# Eval("place") %></div>
                                            </div>
                                        </li>
                                        <li class="enquiries-post">
                                            <div class="en-post"><%# Eval("post_count") %></div>
                                        </li>
                                        <li class="enquiries-stato">
                                            <div class="en-stato">
                                                <div class="">
                                                    <asp:Label runat="server" ID="LblStatus" Text="stat"></asp:Label>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-update">
                                            <div class="en-update">
                                                <div class="en-data"><%# MyUI.Print.DateShort(Eval("last_update"))%></div>
                                                <div class="en-ora"><%# MyUI.Print.TimeShort(Eval("last_update"))%></div>
                                            </div>
                                        </li>
                                        <li class="enquiries-icone">
                                            <div class="en-icone">
                                                <div>
                                                    <asp:LinkButton runat="server" ID="BtnAddListenQuery" CommandName="ADD_LISTEN_QUERY" CssClass="a-icona-canc"></asp:LinkButton>
                                                </div>
                                                <div>
                                                    <asp:LinkButton runat="server" ID="BtnAddAutoFollQuery" CommandName="ADD_AUTO_FOLL_QUERY" CssClass="a-icona-mano"></asp:LinkButton>
                                                </div>
                                                <%--<div><a class="en-vuoto" href="#"></a></div>--%>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="EDIT_ROW" ID="BtnEditRow" CssClass="a-icona-matita"></asp:LinkButton>
                                                </div>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="DELETE_ROW" ID="BtnDeleteRow" OnClientClick="return confirm('Delete records?')" CssClass="a-icona-chiudi"></asp:LinkButton>
                                                </div>

                                            </div>
                                        </li>
                                    </ul>
                                </div>

                            </ItemTemplate>
                            <EditItemTemplate>
                                <div>
                                    <ul class="enquiries-status-input">
                                        <li class="enquiries-flag">
                                            <input type="checkbox" id="c0" name="c0">
                                            <label for="c0"></label>
                                        </li>
                                        <li class="enquiries-testo">
                                            <div class="en-query">
                                                <div class="en-input-name">
                                                    <asp:TextBox runat="server" ID="TxtQuery" Text='<%# Eval("query") %>' placeholder="#internazionalizzazione"></asp:TextBox>
                                                </div>
                                                <div class="en-input-lang">
                                                    <asp:TextBox runat="server" ID="TxtLangCode" CssClass="lang" Text='<%# Eval("lang_code") %>'></asp:TextBox>
                                                </div>
                                                <div class="en-input-place">
                                                    <asp:TextBox runat="server" ID="TxtPlace" Text='<%# Eval("place") %>'></asp:TextBox>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-post">
                                            <div class="en-post">-</div>
                                        </li>
                                        <li class="enquiries-stato">
                                            <div class="en-stato">
                                                <div class="">
                                                    <asp:Label runat="server" ID="LblStatus" Text="stat"></asp:Label>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-update">
                                            <div class="en-update">-</div>
                                        </li>
                                        <li class="enquiries-icone">
                                            <div class="en-icone">
                                                <div><a class="en-vuoto" href="#"></a></div>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="UPDATE_ROW" CssClass="a-icona-disco"></asp:LinkButton>
                                                </div>

                                                <div><a class="en-vuoto" href="#"></a></div>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="CANCEL_ROW_EDIT" CssClass="a-icona-chiudi"></asp:LinkButton>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </EditItemTemplate>
                        </asp:ListView>

                        <App:DataPager runat="server" PageSize="15" Controlid="ListQuery" OnPageChanged="SetListQuery" />

                        <div>
                            <ul class="enquiries-status">
                                <li class="enquiries-flag">
                                    <input type="checkbox" id="ChkAllProfile">
                                    <label for="ChkAllProfile"><span></span></label>
                                </li>
                                <li class="enquiries-testo">
                                    <div class="en-query">
                                        <div class="en-query-testo">account</div>
                                        <div class="en-query-add">
                                            <asp:LinkButton runat="server" ID="BtnAddProfile" CssClass="bottone-add">ADD</asp:LinkButton>
                                        </div>
                                    </div>
                                </li>
                                <li class="enquiries-post">
                                    <div class="en-post">post</div>
                                </li>
                                <li class="enquiries-stato">
                                    <div class="en-stato">status</div>
                                </li>
                                <li class="enquiries-update">
                                    <div class="en-update">last update</div>
                                </li>
                                <li class="enquiries-icone">
                                    <div class="en-icone"></div>
                                </li>
                            </ul>
                        </div>

                        <asp:ListView runat="server" ID="ListProfile" ClientIDMode="Predictable">
                            <ItemTemplate>
                                <div class="profile_row">
                                    <ul class="enquiries-status">
                                        <li class="enquiries-flag">
                                            <span id='<%# Eval("id") %>' data-type='<%# mDB.Folder.DataType.PROFILE %>' class="jstree-draggable" onmousedown="onmousedown_chk_item($(this));" onmouseup="onmouseup_chk_item($(this));" onclick="return false;">
                                                <input type="checkbox" id="ChkItem<%# Eval("id") %>">
                                                <label for="ChkItem<%# Eval("id") %>"><span></span></label>
                                            </span>
                                        </li>
                                        <li class="enquiries-testo">
                                            <div class="en-query">
                                                <div class="en-titolo"><%# Eval("fullname")%></div>
                                                <div class="en-has">@<%# Eval("username")%></div>
                                                <div class="en-foll">(<%# UI.Print.Num0(Eval("follower_count"))%> followers)</div>
                                            </div>
                                        </li>
                                        <li class="enquiries-post">
                                            <div class="en-post"><%# Eval("post_count") %></div>
                                        </li>
                                        <li class="enquiries-stato">
                                            <div class="en-stato">
                                                <div class="">
                                                    <asp:Label runat="server" ID="LblStatus" Text="stat"></asp:Label>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-update">
                                            <div class="en-update">
                                                <div class="en-data"><%# MyUI.Print.DateShort(DB.ToDate(Eval("last_update")))%></div>
                                                <div class="en-ora"><%# MyUI.Print.TimeShort(DB.ToDate(Eval("last_update")))%></div>
                                            </div>
                                        </li>
                                        <li class="enquiries-icone">
                                            <div class="en-icone">
                                                <div><span class="en-vuoto"></span></div>
                                                <div>
                                                    <asp:LinkButton runat="server" ID="BtnAddAutoFollProfile" CommandName="ADD_AUTO_FOLL_PROFILE" CssClass="a-icona-mano"></asp:LinkButton>

                                                </div>
                                                <div><span class="en-vuoto"></span></div>
                                                <%--                                                <div><a class="a-icona-matita" href="#"></a></div>--%>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="DELETE_ROW" ID="BtnDeleteRow" OnClientClick="return confirm('Delete records?')" CssClass="a-icona-chiudi"></asp:LinkButton>

                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <div>
                                    <ul class="enquiries-status">
                                        <li class="enquiries-flag">
                                            <input type="checkbox" id="c8" name="c8">
                                            <label for="c8"></label>
                                        </li>
                                        <li class="enquiries-testo">
                                            <div class="en-query">
                                                <div class="en-input-name">
                                                    <asp:TextBox runat="server" ID="Txtusername"></asp:TextBox>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-post">
                                            <div class="en-post">-</div>
                                        </li>
                                        <li class="enquiries-stato">
                                            <div class="en-stato">
                                                <div class="">
                                                    <asp:Label runat="server" ID="LblStatus" Text="stat"></asp:Label>
                                                </div>
                                            </div>
                                        </li>
                                        <li class="enquiries-update">
                                            <div class="en-update">-</div>
                                        </li>
                                        <li class="enquiries-icone">
                                            <div class="en-icone">
                                                <div><a class="en-vuoto" href="#"></a></div>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="UPDATE_ROW" CssClass="a-icona-disco"></asp:LinkButton>
                                                </div>

                                                <div><a class="en-vuoto" href="#"></a></div>
                                                <div>
                                                    <asp:LinkButton runat="server" CommandName="CANCEL_ROW_EDIT" CssClass="a-icona-chiudi"></asp:LinkButton>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>

                            </EditItemTemplate>
                        </asp:ListView>


                        <App:DataPager runat="server" PageSize="15" Controlid="ListProfile" OnPageChanged="SetListProfile" />


                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <!-- ricerca -->
            <div class="enquiries-search">
                <div class="search-text">
                    not sure what to look for? just surf it first!
                </div>
                <div class="en-input-search">
                    <input id="place" type="text" placeholder="eg: #glouk" name="search" />
                    <button type="submit" class="submit">Search</button>
                </div>
            </div>

        </div>
    </div>


    <div>


        <%--        <div style="float: left;">
            <div id="mmenu" style="height: 30px; overflow: auto;">
                <input type="button" id="add_folder" value="ADD" style="display: block; float: left;" />
                <input type="button" id="rename_folder" value="RENAME" style="display: block; float: left;" />
                <input type="button" id="remove_folder" value="REMOVE" style="display: block; float: left;" />
            </div>
            <div id="demo1" style="width: 200px; float: left;">
            </div>
        </div>--%>
    </div>
    <div class="return">
    </div>
    <hr />
    <asp:UpdatePanel ID="UpPFollowStatus" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:GridView ID="GridFollowStatus" runat="server" Width="100%" AutoGenerateColumns="false" CssClass="summary-results" ShowHeader="true" AllowSorting="true" AllowPaging="True">
                <Columns>
                    <%--                    <asp:TemplateField HeaderText="" HeaderStyle-Width="65px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" Width="20" ToolTip="visualizza post" CommandName="VIEW" ImageUrl="~/style/App/img/icons/system-search.png"></asp:ImageButton>
                            <asp:ImageButton runat="server" ID="IbtFollow" Width="20" ToolTip="FOLLOW" CommandName="FOLLOW" ImageUrl="~/style/App/img/icons/list-add.png"></asp:ImageButton>
                            <asp:ImageButton runat="server" ID="IbtUnFollow" Width="20" ToolTip="UNFOLLOW" CommandName="UNFOLLOW" ImageUrl="~/style/App/img/icons/UndoButton.png"></asp:ImageButton>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="follow account" HeaderStyle-Width="250px">
                        <ItemTemplate>
                            <asp:HyperLink runat="server" NavigateUrl='<%# "https://twitter.com/" & eval("account_to_foll_username	") %>' Target="_blank">
                                <asp:Label runat="server" Text='<%# eval("account_to_foll_username") %>'></asp:Label>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Status" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="Status_id">
                        <ItemTemplate>
                            <asp:Label runat="server" Font-Bold="true" ID="LblStatus" Text=''></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Last update" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="update_status_date">
                        <ItemTemplate>
                            <asp:Label runat="server" Font-Size="11px" Text='<%# MyUI.Print.DateTimeShort(DBase.Conv.DateFromDB(Eval("update_status_date")))%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Foll" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="follow_date">
                        <ItemTemplate>
                            <asp:Label runat="server" Font-Size="11px" Text='<%# MyUI.Print.DateTimeShort(DBase.Conv.DateFromDB(Eval("follow_date")))%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Unfoll" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="unfollow_date">
                        <ItemTemplate>
                            <asp:Label runat="server" Font-Size="11px" Text='<%# MyUI.Print.DateTimeShort(DBase.Conv.DateFromDB(Eval("unfollow_date")))%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="From query" HeaderStyle-Width="">
                        <ItemTemplate>
                            <asp:Label runat="server" Text='<%# eval("query") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                <HeaderStyle CssClass="Header" />
                <EditRowStyle CssClass="EditRow" />
                <SelectedRowStyle CssClass="SelectedRow" />
                <RowStyle CssClass="Row Padding2" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="return">
    </div>
    <hr />
    <asp:UpdatePanel ID="UpPQueryResult" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:HiddenField ID="HidSelectQueryId" runat="server" Value="0" />
            <asp:GridView ID="GridAccounts" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="table_result" ShowHeader="true" AllowSorting="true" AllowPaging="True">
                <Columns>
                    <asp:TemplateField HeaderText="post" HeaderStyle-Width="">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" Width="20" ToolTip="visualizza post" CommandName="VIEW" ImageUrl="~/style/App/img/icons/list-add.png"></asp:ImageButton>
                            <asp:HyperLink runat="server" NavigateUrl='<%# "https://twitter.com/" & eval("account_username") %>' Target="_blank">
                                <asp:Label runat="server" Text='<%# eval("account_username") %>'></asp:Label>
                            </asp:HyperLink>
                            <%--<asp:Label runat="server" Text='<%# eval("account_code") %>'></asp:Label>--%>
                            (<asp:Label runat="server" Text='<%# eval("post_count") %>'></asp:Label>)
                            <asp:GridView ID="GridQueryPosts" Visible="false" OnPageIndexChanging="GridQueryPosts_PageIndexChanging" Font-Size="10px" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="table_result_light" ShowHeader="false" AllowSorting="true" AllowPaging="True">
                                <Columns>
                                    <asp:TemplateField HeaderText="post" HeaderStyle-Width="">
                                        <ItemTemplate>
                                            <asp:Label runat="server" Text='<%# eval("post_text") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="pubb" HeaderStyle-Width="100px">
                                        <ItemTemplate>
                                            <asp:Label runat="server" Text='<%# eval("pubb_date").value %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                                <HeaderStyle CssClass="Header" />
                                <EditRowStyle CssClass="EditRow" />
                                <SelectedRowStyle CssClass="SelectedRow" />
                                <RowStyle CssClass="Row Padding2" />
                            </asp:GridView>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <AlternatingRowStyle CssClass="AlternatingRow Padding2" />
                <HeaderStyle CssClass="Header" />
                <EditRowStyle CssClass="EditRow" />
                <SelectedRowStyle CssClass="SelectedRow" />
                <RowStyle CssClass="Row Padding2" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>


</asp:Content>
